import 'package:uuid/uuid.dart';

class Todo {
  bool complete; // todo的完成状态
  final String id; // todo的唯一id
  final DateTime time; // todo创建时间
  String task; // todo的具体任务

  Todo({this.task = '', this.complete = false, DateTime? time, String? id})
      : time = time ?? DateTime.now(),
        id = id ?? (const Uuid()).v4();
}
